#!/bin/bash
datePattern=`date "+%Y%m%d"`
path=/user_clicks/${datePattern}/
hive -e "use default; load data inpath '${path}' into table user_clicks partition(dt='${datePattern}');"
